package com.cruise.game.model.param.order;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 评价订单参数
 * 
 * @author cruise
 * @date 2025-02-28
 */
@Data
public class RateOrderParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评分(1-5)
     */
    @NotNull(message = "评分不能为空")
    @Min(value = 1, message = "评分最小为1")
    @Max(value = 5, message = "评分最大为5")
    private Integer rating;

    /**
     * 评价内容
     */
    private String comment;
}
